<{include file="top.html"}>
<style>
    #tmp{display:none}
    .rmbtn{
        color:#fe0090;
        float: right;
        margin-right: 1em;
    }
</style>
</head>
<body>
<div class="xy-panel">
    <div class="xy-panel-top">
        <div class="xy-titlebar">
            <div class="xy-titlebar-title" style="margin: 0 auto">信息填写</div>
            <div class="xy-titlebar-right"></div>
        </div>
    </div>
    <div class="xy-panel-content" style="bottom:0;padding:1rem 0;">
        <div class="xy-row vDirectionRow">
            <form id="tab_mo_2" >
                <dl class="Annotate">注：加*号为必填项</dl>
                <ul class="con_ui-list integrate_ui-list">
                    <li class="ui-list">
                        <i><span style="color:red">*</span>申请人姓名：</i>
                        <span><input type="text" name="realname" placeholder="请输入真实姓名" value="<{$babyInfo['realname']}>" required /></span>
                    </li>
                    <li class="ui-list">
                        <i><span style="color:red">*</span>联系电话：</i>
                        <span><input type="tel" name="phone" placeholder="请输入联系电话" value="<{$babyInfo['phone']}>" required /></span>
                    </li>
                    <li class="ui-list">
                        <i><span style="color:red">*</span>家庭成员数：</i>
                        <span><input type="tel" name="people" min="1"  value="<{$babyInfo['people']}>" required /></span>
                    </li>
                    <li class="ui-list">
                        <i><span style="color:red">*</span>小孩数量(16周岁以下)：</i>
                        <span><input type="tel" name="babyNum" min="1"   value="<{$babyInfo['babyNum']}>" required /></span>
                    </li>
                    <li class="ui-list">
                        <i><span style="color:red">*</span>申请人职业：</i>
                        <span><input type="text" name="job"  value="<{$babyInfo['job']}>" required /></span>
                    </li>
                    <li class="ui-list">
                        <i><span style="color:red">*</span>所在地区：</i>
                        <span>
                            <select  name="area"  style="height: 2.5rem;">
                                <option <{if $babyInfo['area'] eq '海曙' }>selected<{/if}> > 海曙</option>
                                <option <{if $babyInfo['area'] eq '江北' }>selected<{/if}> > 江北</option>
                                <option <{if $babyInfo['area'] eq '鄞州' }>selected<{/if}> > 鄞州</option>
                                <option <{if $babyInfo['area'] eq '奉化' }>selected<{/if}> > 奉化</option>
                                <option <{if $babyInfo['area'] eq '镇海' }>selected<{/if}> > 镇海</option>
                                <option <{if $babyInfo['area'] eq '北仑' }>selected<{/if}> > 北仑</option>
                            </select>

                        </span>
                    </li>
                    <li class="ui-list">
                        <i><span style="color:red">*</span>领养意向：</i>
                        <span>
                            <select  name="pet"  style="height: 2.5rem;">
                                <option <{if $babyInfo['pet'] eq '猫 01' }>selected<{/if}> > 猫 01</option>
                                <option <{if $babyInfo['pet'] eq '猫 02' }>selected<{/if}> > 猫 02</option>
                                <option <{if $babyInfo['pet'] eq '狗 01' }>selected<{/if}> > 狗 01</option>
                                <option <{if $babyInfo['pet'] eq '狗 02' }>selected<{/if}> > 狗 02</option>
                                <option <{if $babyInfo['pet'] eq '狗 03' }>selected<{/if}> > 狗 03</option>
                                <option <{if $babyInfo['pet'] eq '狗 04' }>selected<{/if}> > 狗 04</option>
                                <option <{if $babyInfo['pet'] eq '狗 05' }>selected<{/if}> > 狗 05</option>
                                <option <{if $babyInfo['pet'] eq '狗 06' }>selected<{/if}> > 狗 06</option>
                                <option <{if $babyInfo['pet'] eq '狗 07' }>selected<{/if}> > 狗 07</option>
                            </select>
                        </span>
                    </li>


                </ul>

                <ul class="con_ui-list integrate_ui-list">
                <li class="ui-list">
                    <i class="address-icon">想对领养的小动物说：</i>
                </li>
                <li class="address_Newbox">
                    <i class="addressArea"><textarea name="say" ><{$babyInfo['say']}></textarea></i>
                </li>
            </ul>

                <div class="ui-button ui-button-2">
                    <a href="javascript:void(0);" onclick="submitInfo()">提交信息</a>
                </div>

            </form>

        </div>
    </div>
</div>


</body>
</html>

<script>


    function submitInfo(){
        var param = $("#tab_mo_2").serialize();
        $.post('',param,function(res){
            layer.msg(res.msg);
        });
    }

</script>